package cn.walls1717.wallsmall.order.feign;

import cn.walls1717.wallsmall.order.pojo.vo.OrderItemVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * 购物车Feign
 *
 * @author walls1717
 * @since 2022/11/19 10:42
 **/
@FeignClient("wallsmall-cart")
public interface CartFeignService {

    /**
     * 获取当前用户购物车中的所有购物项
     *
     * @return 购物项集合
     */
    @GetMapping("/currentUserCartItems")
    List<OrderItemVO> listCurrentUserCartItems();
}
